-- GENERATED SPELL FOR [Firetail Scorpid] --


function spell0_9698(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(15661,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9698', 21000, 1)
end

function spell1_9698(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(5416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9698', 45000, 1)
end

function Sorts_9698(pUnit, Event)
local choix_sorts_9698 = math.random(0, 1)
if choix_sorts_9698 == 0 then
pUnit:RegisterEvent('spell0_9698', 1, 1)
end
if choix_sorts_9698 == 1 then
pUnit:RegisterEvent('spell1_9698', 1, 1)
end
end

function mob9698_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9698', math.random(1500, 3000), 1)
end

function mob9698_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9698_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9698_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9698, 1, 'mob9698_Action')
RegisterUnitEvent(9698, 2, 'mob9698_Leave')
RegisterUnitEvent(9698, 3, 'mob9698_Kill')
RegisterUnitEvent(9698, 4, 'mob9698_Die')
